package com.easyoffer.sentinel;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easyoffer.common.BaseResponse;
import com.easyoffer.common.PageRequest;
import com.easyoffer.common.util.ResultUtils;
import com.easyoffer.model.vo.QuestionBankVO;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

@Component
public class FallbackHandler {
    public static BaseResponse<Page<QuestionBankVO>> listQuestionBankPageFallHandler(PageRequest pageRequest, HttpServletRequest request, Throwable ex){
        return ResultUtils.error(200,"系统错误，触发降级处理");
    }
}
